<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_io_i2c.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">dev_io_i2c.h</div></div>
</div><!--header-->
<div class="contents">
<a href="dev__io__i2c_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#ifndef __DEV_IO_I2C_H__</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#define __DEV_IO_I2C_H__</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#include &quot;stdint.h&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>uint8_t <a class="code hl_function" href="dev__io__i2c_8h.html#af312bd95bfab5d6c323eb36deea573cf">io_i2c_start</a>(uint8_t addr, uint8_t wait);</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>uint8_t <a class="code hl_function" href="dev__io__i2c_8h.html#a18a19719c37d180525d3ad812408c62a">io_i2c_read</a>(uint8_t ack, uint8_t wait);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>uint8_t <a class="code hl_function" href="dev__io__i2c_8h.html#a4d0792f91f99fe78d977675f315b8b99">io_i2c_write</a>(uint8_t data, uint8_t wait);</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span><span class="keywordtype">void</span> <a class="code hl_function" href="dev__io__i2c_8h.html#addb2a5d40257d803646950da9167bccb">io_i2c_stop</a>(uint8_t wait);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span> </div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span><span class="preprocessor">#endif </span><span class="comment">// __DEV_IO_I2C_H__</span></div>
<div class="ttc" id="adev__io__i2c_8h_html_a18a19719c37d180525d3ad812408c62a"><div class="ttname"><a href="dev__io__i2c_8h.html#a18a19719c37d180525d3ad812408c62a">io_i2c_read</a></div><div class="ttdeci">uint8_t io_i2c_read(uint8_t ack, uint8_t wait)</div><div class="ttdoc">IO 模拟标准 I2C, 主设备读取一个数据</div><div class="ttdef"><b>Definition:</b> <a href="dev__io__i2c_8c_source.html#l00153">dev_io_i2c.c:153</a></div></div>
<div class="ttc" id="adev__io__i2c_8h_html_a4d0792f91f99fe78d977675f315b8b99"><div class="ttname"><a href="dev__io__i2c_8h.html#a4d0792f91f99fe78d977675f315b8b99">io_i2c_write</a></div><div class="ttdeci">uint8_t io_i2c_write(uint8_t data, uint8_t wait)</div><div class="ttdoc">IO 模拟标准 I2C, 主设备写入一个数据</div><div class="ttdef"><b>Definition:</b> <a href="dev__io__i2c_8c_source.html#l00168">dev_io_i2c.c:168</a></div></div>
<div class="ttc" id="adev__io__i2c_8h_html_addb2a5d40257d803646950da9167bccb"><div class="ttname"><a href="dev__io__i2c_8h.html#addb2a5d40257d803646950da9167bccb">io_i2c_stop</a></div><div class="ttdeci">void io_i2c_stop(uint8_t wait)</div><div class="ttdoc">IO 模拟标准 I2C, 主设备产生停止信号</div><div class="ttdef"><b>Definition:</b> <a href="dev__io__i2c_8c_source.html#l00179">dev_io_i2c.c:179</a></div></div>
<div class="ttc" id="adev__io__i2c_8h_html_af312bd95bfab5d6c323eb36deea573cf"><div class="ttname"><a href="dev__io__i2c_8h.html#af312bd95bfab5d6c323eb36deea573cf">io_i2c_start</a></div><div class="ttdeci">uint8_t io_i2c_start(uint8_t addr, uint8_t wait)</div><div class="ttdoc">IO 模拟标准 I2C, 主设备产生起始信号并发送设备地址</div><div class="ttdef"><b>Definition:</b> <a href="dev__io__i2c_8c_source.html#l00132">dev_io_i2c.c:132</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
